package com.baichang.taoshunda.service.impl;

import com.baichang.framework.model.Page;
import com.baichang.taoshunda.dao.ReportTrendsDao;
import com.baichang.taoshunda.service.ReportTrendsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/8/30 0030.
 */
@Service
public class ReportTrendsServiceImpl implements ReportTrendsService {

    @Autowired
    private ReportTrendsDao reportTrendsDao;

    /**
     * 查询举报的互动信息
     *
     * @param nowPage
     * @param pageSize
     * @param userName
     * @return
     */
    @Override
    public Page queryReportTrends(int nowPage, int pageSize, String userName) {
        return reportTrendsDao.queryReportTrends(nowPage, pageSize,userName);
    }

    /**
     * 删除举报信息
     * @param id
     * @return
     */
    @Override
    public int deleteTrendsReport(Integer id) {
        return reportTrendsDao.deleteById(id);
    }
}
